from django.conf.urls import url,include
from django.contrib import admin
from . import views

urlpatterns = [
    # 列表详情页
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view(), name="listview"),
    # 热销商品页
    url(r'^hot/(?P<category_id>\d+)/$', views.HotView.as_view(), name="hotview"),
    # 商品详情页
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(), name="detailview"),
    # 统计访问量
    url(r'^detail/visit/(?P<category_id>\d+)/$', views.VisitView.as_view(), name="visitview"),


    ]